<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
	    <meta name="description" content="Creative - Bootstrap 3 Responsive Admin Template">
	    <meta name="author" content="GeeksLabs">
	    <meta name="keyword" content="Creative, Dashboard, Admin, Template, Theme, Bootstrap, Responsive, Retina, Minimal">
	    <link rel="shortcut icon" href="img/favicon.png">
	    <title>创新创业中心管理平台</title>
	    <!-- Bootstrap CSS -->    
	    <link href="css/bootstrap.min.css" rel="stylesheet">
	    <script src="js/jquery-1.8.3.min.js"></script>
	    <!-- bootstrap theme -->
	    <link href="css/bootstrap-theme.css" rel="stylesheet">
	    <script src="js/bootstrap.min.js"></script>
	    <!--external css-->
	    <!-- font icon -->
	    <link href="css/elegant-icons-style.css" rel="stylesheet" />
	    <link href="css/font-awesome.css" rel="stylesheet" />
	    <!-- Custom styles -->
	    <link href="css/style.css" rel="stylesheet">
	    <link href="css/style-responsive.css" rel="stylesheet" />
	</head>
	<body class="login-img3-body">
		

    <div class="container">

      	<form class="login-form" action="./login.do" method="post">
	        <div class="login-wrap">
	        	<p><font color="#000000" size="5px"><strong>创新创业中心管理平台</strong></font></p>
	        	<c:if test="${errorMsg!=null}">
	        		<div id='errorMag' class='alert alert-warning' style='background:#FFD2D2;'>
	        			<a href='#' class='close' data-dismiss='alert'>&times;</a>
	        			<font color='#600000'><strong>登陆失败！</strong>${errorMsg}</font>
	        		</div>
	        	</c:if>
	        <div class="input-group">
	        	
	        <span class="input-group-addon"><i class="icon_profile"></i></span>
	            <input id="username" name="username" type="text" class="form-control" placeholder="请输入账号" autofocus>
	        </div>
	        <div class="input-group">
	            <span class="input-group-addon"><i class="icon_key_alt"></i></span>
	            <input id="userpwd" name="userpwd" type="password" class="form-control" placeholder="请输入密码">
	        </div>
	        <label class="checkbox">
	            <input type="checkbox" value="remember-me">记住我
	            <span class="pull-right"> <a href="#"> 忘记密码</a></span>
	        </label>
	        <button class="btn btn-primary btn-lg btn-block" type="submit" onclick="return checkUser()">登陆</button>
	        </div>
	    </form>
	
	</div>

	<script type="text/javascript">
		function checkUser(){
				var username=document.getElementById("username").value;
				var userpwd=document.getElementById("userpwd").value;
				if (username==""||userpwd=="") {
					$("p").after("<div id='errorMag' class='alert alert-warning' style='background:#FFD2D2;'><a href='#' class='close' data-dismiss='alert'>&times;</a><font color='#600000'><strong>登陆失败！</strong>请重新输入。</font></div>");
					return false;
				}else{
					return true;
				}
		}
		
	</script>
  	</body>
</html>

